module.exports = {
    devServer: {
        open: true,
        proxy: {
            '/api': {
                target: 'http://www.weather.com.cn/', //对应自己的接口
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    },
    configureWebpack: {
        resolve: {
            alias: {
                // "别名":"对应的文件夹"
                "com": "@/components",
                "api": "@/api",
                "util": "@/util",
                // "public": "/public"
            }
        }
    },
    publicPath: "./"
}